package com.study.oop.demo;

public class OrderTest {

    public static void main(String[] args) {
        AbstractOrder abstractOrder1 = new ComOrder();
        AbstractOrder abstractOrder2 = new SocOrder();

        abstractOrder1.accept();
        abstractOrder1.success();
        abstractOrder1.fail();

        abstractOrder2.accept();
        abstractOrder2.success();
        abstractOrder2.fail();
    }
}
